package questionsObjects;

import java.util.ArrayList;
import java.io.Serializable;

public class Questions  {
    private ArrayList<Question> questions;

    public Questions() {
        questions = new ArrayList<Question>();
    }

    public int length() {
        return questions.size();
    }

    public void add(Question question) {
        questions.add(question);
    }

    public String getQuestion(int index) {
        return questions.get(index).getQuestion();
    }

    public String getAnswers(int index) {
        return questions.get(index).getAnswers();
    }

    public boolean isCorrectAnswer(int index, String answer) {
        return questions.get(index).isCorrectAnswer(answer);
    }

    public String getTheme(int index) {
        return questions.get(index).getTheme();
    }

    public int getComplexity(int index) {
        return questions.get(index).getComplexity();
    }
}
